POV-Ray : Newsgroups : povray.programming : Extending the #read directive : Re: Extending the #read directive Server Time
18 Jun 2024 01:25:05 EDT (-0400)
  Re: Extending the #read directive  
From: Hugo Asm
Date: 8 May 2003 17:08:48
Message: <3ebac760@news.povray.org>
> IIRC Hugo meant _small_ change in POV-Ray sources ;-)

I do have a few questions to this:

Would a text file ever contain a null character (ascii value zero)
considering it's only text? A text file uses 0-9, A-Z, a-z, a few !"#&
signs, an invisible line break, and EOF.. There seems to be no need for a
null character.

On the other hand, if we are actually talking about 2 characters  '\0'  then
why not convert them to an ascii value that is never used in a text file?
Just as long as the C string can hold it. Then convert it back to \0 when
the user wants to read the string.


Regards,
Hugo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.